package test03;

public class Person extends Resident {
    private String education;
    private String occupation;

    public Person(String name, String id, String birthDate, String education, String occupation) {
        super(name, id, birthDate);
        this.education = education;
        this.occupation = occupation;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public String getOccupation() {
        return occupation;
    }

    public void setOccupation(String occupation) {
        this.occupation = occupation;
    }

    @Override
    public String toString() {
        return "Person{" +
                super.toString()+
                "education='" + education + '\'' +
                ", occupation='" + occupation + '\'' +
                '}';
    }
}
